package com.hc.ssm.feign;

import com.hc.ssm.pojo.Member;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "APP-HAOCHENIT-MEMBER",fallbackFactory = IMemberFeignFallbackFactory.class)
public interface IMemberFeign {

    @RequestMapping("/getMemberById")
    public String getMemberById(@RequestParam Integer id);

    @RequestMapping("/addMember")
    public void addMember(@RequestBody Member member);

    @RequestMapping("/getMemberList")
    public List<Member> getMemberList();

    @RequestMapping("/getMemberById2")
    public Member getMemberById2(@RequestParam Integer id);

}
